package com.terren.webdig.setting.entity;

import java.util.List;

import com.terren.webdig.basic.BasicEntity;
import com.terren.webdig.common.config.ConfigInfo;

/**
 * u_function表
 *
 */
public class Function extends BasicEntity{
	private Integer userId;
	private Integer actionId = ConfigInfo.ACTIONID;
	private String actionValue;
	private String remarks;
	private Integer functionId;
	private String k; // 页面 key 参数
	private String functionName;
	private String functionUrl;
	private Integer index;
	private String actionUrl; // 拼接的actionUrl
	private String dotype;// 拼接的节点字段名称
	private String child_parentName;
	// 添加二级菜单
	private Integer type;
	private List<Function> children;
	// 关系表中的字段信息
	private Integer parentId;
	private Integer childId;
	// 配置功能时树形图用到的属性
	private Boolean leaf;

	private String icon = ConfigInfo.FUNCTION_ICON;// 功能对应的显示图标

	private String functionParentName;// 该功能所属的一级功能节点名称
	private String functionParentK;// 该功能所属的一级k
	private String functionParentIcon;// 该功能所属的一级icon
	private String childName;

	public String getFunctionParentK() {
		return functionParentK;
	}

	public void setFunctionParentK(String functionParentK) {
		this.functionParentK = functionParentK;
	}

	public String getFunctionParentIcon() {
		return functionParentIcon;
	}

	public void setFunctionParentIcon(String functionParentIcon) {
		this.functionParentIcon = functionParentIcon;
	}

	public String getFunctionParentName() {
		return functionParentName;
	}

	public void setFunctionParentName(String functionParentName) {
		this.functionParentName = functionParentName;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getActionId() {
		return actionId;
	}

	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}

	public String getActionValue() {
		return actionValue;
	}

	public void setActionValue(String actionValue) {
		this.actionValue = actionValue;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Integer getFunctionId() {
		return functionId;
	}

	public void setFunctionId(Integer functionId) {
		this.functionId = functionId;
	}

	public String getK() {
		return k;
	}

	public void setK(String k) {
		this.k = k;
	}

	public String getFunctionName() {
		return functionName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}

	public String getFunctionUrl() {
		return functionUrl;
	}

	public void setFunctionUrl(String functionUrl) {
		this.functionUrl = functionUrl;
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}

	public String getActionUrl() {
		return actionUrl;
	}

	public void setActionUrl(String actionUrl) {
		this.actionUrl = actionUrl;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Integer getChildId() {
		return childId;
	}

	public void setChildId(Integer childId) {
		this.childId = childId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getDotype() {
		return dotype;
	}

	public void setDotype(String dotype) {
		this.dotype = dotype;
	}

	public String getChild_parentName() {
		return child_parentName;
	}

	public void setChild_parentName(String child_parentName) {
		this.child_parentName = child_parentName;
	}

	public List<Function> getChildren() {
		return children;
	}

	public void setChildren(List<Function> children) {
		this.children = children;
	}

	public Boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public String getText() {
		return this.functionName;
	}

	public String getChildName() {
		return childName;
	}

	public void setChildName(String childName) {
		this.childName = childName;
	}

	@Override
	public String toString() {
		return "Function [userId=" + userId + ", actionId=" + actionId + ", actionValue=" + actionValue + ", remarks="
				+ remarks + ", functionId=" + functionId + ", k=" + k + ", functionName=" + functionName
				+ ", functionUrl=" + functionUrl + ", index=" + index + ", actionUrl=" + actionUrl + ", dotype="
				+ dotype + ", child_parentName=" + child_parentName + ", type=" + type + ", children=" + children
				+ ", parentId=" + parentId + ", childId=" + childId + ", leaf=" + leaf + ", icon=" + icon + "]";
	}

}
